const OSS = require('ali-oss') //引入alioss

export function client(data) {
  //后台提供数据
  return new OSS({
    region: data.endpoint,
    accessKeyId: data.accessKeyId,
    accessKeySecret: data.accessKeySecret,
    bucket: data.bucket,
    endpoint: data.endpoint,
    secure: true
  })
}
